//
//  CameraMenu.h
//  哎游
//
//  Created by 刘建镇 on 15-1-12.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIImage+ImageEffects.h"
#import "CameraMenuItemCell.h"

@class CameraMenu;

@protocol CameraMenuDelegate <NSObject>
@optional
- (void)menuDidShow;
- (void)menuDidHide;
- (void)selectedItemAtIndex:(NSInteger)index;
@end

@interface CameraMenu : UIView<UICollectionViewDataSource,UICollectionViewDelegateFlowLayout> {
    //    id<BlurMenuDelegate> delegate;
    //    UIView *parent;
    //    NSArray *menuItems;
    //    UICollectionView *_collectionView;
}

@property(nonatomic, retain) id <CameraMenuDelegate> delegate;
@property(nonatomic, retain) UIView *parent;
@property(nonatomic, retain) NSArray *menuItems;
@property(nonatomic, retain) UICollectionView *collectionView;

- (id)initWithItems:(NSArray*)items parentView:(UIView *)p delegate:(id<CameraMenuDelegate>)d;

- (void)show;
- (void)hide;

@end